
#ifndef _M_DEV_BUZZER_H_
#define _M_DEV_BUZZER_H_

#include <stm32f10x.h>

/* buzzer pin --> PD2 */
#define BUZZER_APB_CLOCK  RCC_APB2Periph_GPIOD
#define	BUZZER_PIN    	  GPIO_Pin_2
#define	BUZZER_PIN_BASE	  GPIOD

#define BUZZER_LOW_LEVEL    0
#define BUZZER_HIGH_LEVEL   1

void buzzer_dev_init(void);
void buzzer_set(unsigned char ucStat);

#endif

